home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / docs / lwml9504.lha / LIGHTWAVE-APR95 / 000752_owner-lightwave-l _Wed Apr 26 13:01:54 1995.msg < prev    next >
Internet Message Format  |  1995-05-06  |  5KB

  1. Return-Path: <owner-lightwave-l>
  2. Received: by mail4.netcom.com (8.6.12/Netcom)
  3.     id EAA29768; Wed, 26 Apr 1995 04:03:28 -0700
  4. Received: from tango.rahul.net by mail4.netcom.com (8.6.12/Netcom)
  5.     id EAA29701; Wed, 26 Apr 1995 04:02:30 -0700
  6. Received: from hustle.rahul.net by tango.rahul.net with SMTP id AA14047
  7.   (5.67b8/IDA-1.5 for <lightwave-l@netcom.com>); Wed, 26 Apr 1995 04:02:57 -0700
  8. Received: from satlink.UUCP by hustle.rahul.net with UUCP id AA24338
  9.   (5.67b8/IDA-1.5 for lightwave-l@netcom.com); Wed, 26 Apr 1995 04:02:55 -0700
  10. Received: by satlink.net with uucp (FX UUCP)
  11.     for lightwave-l@netcom.com; Wed, 26 Apr 95 06:24:34 -0400
  12. Received: by sicoar1.satlink.net (1.65/waf)
  13.     via UUCP; Wed, 26 Apr 95 01:22:15 ARG
  14.     for lightwave-l@netcom.com
  15. To: lightwave-l@netcom.com
  16. Subject: Re: shadows on live
  17. From: ggarramuno@sicoar1.satlink.net (Gonzalo Garramuno)
  18. Message-Id: <6J654c1w165w@sicoar1.satlink.net>
  19. Date: Wed, 26 Apr 95 01:20:04 ARG
  20. Organization: SiCoAr BSAS1 - BBS - UUCP-FTSC mailer - Bs. As. Argentina
  21. Sender: owner-lightwave-l@netcom.com
  22. Precedence: bulk
  23.  
  24. In a message 
  25. JB>Okay, here's my trouble:  I'm going to be doing some LW effects for a
  26. JB>student project where I need a 3D object to move around in a real-world
  27. JB>setting, and cast shadows on the floor (the scene is to take place in a
  28. JB>garage).
  29.  
  30. JB>I know how to use front-projection mapping on a dummy object so it will
  31. JB>be in the place of a real-world object (i.e. a 3D floor object matched
  32. JB>with the real floor), but I need shadows on this floor.  To get front-
  33. JB>projection-mapped surfaces to match a background image, they have to be
  34. JB>100% luminous, with no diffusion.  Unfortunately, they won't receive
  35. JB>shadows this way...at least not shadow maps.
  36.  
  37. Justin,
  38.  
  39.   This is a problem with the way Lightwave handles surface settings which I
  40. mentioned to Allen Hastings (LW's programmer) several months ago.
  41.   Right now, the easiest solution I know will take time, and it may not work
  42. in all situations.  First, set up a plane completely luminous with a front-
  43. project mapped image (to work as the ground).  Then place your objects and
  44. animate your scene.  After you are 100% sure of the animation, set up the
  45. lights until they match what you expect.  Don't worry about the projected
  46. shadows yet.
  47.   After you are done, play around with the surface settings.  Lower the
  48. luminosity from 100% while at the same time you increase the diffusion from
  49. 0%.  After that, set the object edges to transparent and also start
  50. changing the Edge Value setting.
  51.   Eventually you will find some good numbers (in my case, it took me around
  52. 4 hours for one scene).  REMEMBER!  If after you are done, you decide to
  53. change/move/add lights, you will have to repeat everything again.
  54.   However, if your lighting changes during the animation (or you move your
  55. camera) this method will not work.
  56.  
  57.   In that case, you will need to render your scene twice and composite
  58. the shadows later.  To do this, you will need a program like Image FX (I
  59. belive better for this) or ADPro (you may need to use ARexx or use something
  60. like ProControl).
  61.   First, you will render your whole scene with no shadows turned on (and no
  62. plane -ground).  After that is done, load your ground object or those that
  63. need to receive shadows.  Make all surfaces of all other objects 100%
  64. white, and 100% diffuse and 100% luminous.  Make your background also 100%
  65. white.
  66.   Then, select the surfaces of the objects that are going to receive the
  67. shadow and also make them 100% white and 100% diffuse, but set luminous to
  68. 0%.  That way, shadows will be rendered onto those objects.
  69.   After all that is done, render the animation again, but with shadows
  70. turned on now.  If everything went all right, you will end up with a white
  71. image, with some gray or black places where the projected shadows are.
  72.   Now, you should go to your favorite image processing program and load the
  73. shadows animation.  You should extract a mask for all the gray areas
  74. (consult your software manual to do it).  The easiest way is to copy (or
  75. load) that same image as an alpha channel (or mask).  If copying the image
  76. directly to the mask makes the shadow to dark or too white, you should play
  77. around with the contrast and brightness settings of the image before
  78. copying it.  Then, save another sequence of images, but of the mask only.
  79.   Finally, you should composite the shadow sequence on top of the rendered
  80. sequence with the corresponding alpha channel (mask).
  81.   If this is not clear, e-mail me and I could give you more detailed
  82. instructions.
  83.  
  84. Gonzalo Garramuno
  85. ggarramuno@sicoar1.satlink.net
  86. Carlos Sorin Cine S.R.L.
  87. Buenos Aires, Argentina